Skip to content

feat: portable AppImage mode detection - #1371

Draft
sneurlax wants to merge 6 commits into
stagingfrom
feat/1177-portable-appimage
Draft

sneurlax wants to merge 6 commits into
stagingfrom
feat/1177-portable-appimage

Conversation

@sneurlax

@sneurlax sneurlax commented May 27, 2026 •

Copy link
Copy Markdown
Member

closes #1177

Refresh review (2026-11-10)

Refresh review fixed desktop data-directory argument handling: an explicit -d override remains valid with --portable outside AppImage, while portable mode still requires AppImage without an override. Added regression coverage.

Checks: flutter test test/utilities/stack_file_system_test.dart (13 passed). Static analysis found no warnings or errors in changed files; remaining diagnostics are informational baseline style notices.

@codecov

codecov Bot commented May 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.35484% with 1539 lines in your changes missing coverage. Please review.
✅ Project coverage is 13.94%. Comparing base (1e2e4d9) to head (ab2d9f8).
⚠️ Report is 148 commits behind head on staging.

Files with missing lines Patch % Lines
lib/widgets/desktop/qr_code_scanner_dialog.dart 0.00% 195 Missing ⚠️
.../wallet/wallet_mixin_interfaces/rbf_interface.dart 0.00% 77 Missing ⚠️
...b/pages/exchange_view/confirm_change_now_send.dart 0.00% 75 Missing ⚠️
...b/pages/shopinbit/shopinbit_confirm_send_view.dart 0.00% 70 Missing ⚠️
...in_selection/exchange_currency_selection_view.dart 0.00% 69 Missing ⚠️
lib/pages/cakepay/cakepay_confirm_send_view.dart 0.00% 64 Missing ⚠️
lib/pages/send_view/send_view.dart 69.84% 60 Missing ⚠️
...ack_view/wallet_view/sub_widgets/desktop_send.dart 71.07% 59 Missing ⚠️
...t/wallet_mixin_interfaces/electrumx_interface.dart 0.00% 56 Missing ⚠️
...ction_views/tx_v2/transaction_v2_details_view.dart 0.00% 54 Missing ⚠️
... and 81 more
Additional details and impacted files
@@             Coverage Diff             @@
##           staging    #1371      +/-   ##
===========================================
+ Coverage     7.85%   13.94%   +6.08%     
===========================================
  Files         1125     1139      +14     
  Lines       112820   114726    +1906     
===========================================
+ Hits          8866    16000    +7134     
+ Misses      103954    98726    -5228     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sneurlax

Copy link
Copy Markdown
Member Author

Converting to draft because I have too many open PRs ready--will take another review pass over this before re-readying it

@sneurlax
sneurlax marked this pull request as draft August 20, 2026 18:58
Running an AppImage with --portable, or placing an <AppImage>.portable
marker file beside it, keeps the data root, secure store and logs in
<AppImage dir>/.<app data dir> instead of the home directory. An existing
directory beside the AppImage is never on its own treated as consent.

An explicit -d <dir> stays authoritative wherever it appears in argv;
-d without a directory and --portable outside an AppImage are usage
errors that exit 64 instead of opening an empty window.

closes #1177
@sneurlax
sneurlax force-pushed the feat/1177-portable-appimage branch from 63d8f60 to f377711 Compare August 24, 2026 21:31
Running an AppImage with --portable, or placing an <AppImage>.portable
marker file beside it, keeps the data root, secure store and logs in
<AppImage dir>/.<app data dir> instead of the home directory. An existing
directory beside the AppImage is never on its own treated as consent.

An explicit -d <dir> stays authoritative wherever it appears in argv;
-d without a directory and --portable outside an AppImage are usage
errors that exit 64 instead of opening an empty window.

closes #1177
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add portable aware storage code for portable mode with AppImages

1 participant